package com.service.impl;

import com.mapper.SuppilerMapper;
import com.pojo.Suppiler;
import com.service.SuppilerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class SuppilerServiceImpl implements SuppilerService {

    @Autowired
    public SuppilerMapper mapper;
    @Override
    public List<Suppiler> suppilerFindAll(Integer sid,String scope) {
        return mapper.suppilerFindAll(sid,scope);
    }

    @Override
    public int suppilerInsert(Suppiler suppiler) {
        return mapper.suppilerInsert(suppiler);
    }

    @Override
    public int suppilerUpdate(Suppiler suppiler) {
        return mapper.suppilerUpdate(suppiler);
    }

    @Override
    public int suppilerDelete(Integer sid) {
        return mapper.suppilerDelete(sid);
    }
}
